package cn.com.customer.manager.adapter

import android.widget.TextView
import cn.com.customer.manager.R
import cn.com.customer.manager.bean.TaskItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder

class TaskListAdapter(rid: Int): BaseQuickAdapter<TaskItem, BaseViewHolder>(rid) {
    override fun convert(helper: BaseViewHolder?, item: TaskItem?) {
        if (item != null) {
            helper?.let {
                it.setText(R.id.tv_time_1,item.taskDate)
                it.setText(R.id.tv_task_name,item.taskType)
                it.setText(R.id.tv_customer_name,item.customerName)
            }
        }
    }

}